<template>
    <transition name="fade">
  <div class="container">
      <div class="header">
          <a class="left" v-on:click="back()"><img src="../../assets/back.png" ></a>
          <a class="center">收藏夹</a>
      </div>
      <div class="list">
          <div class="item">
              <div class="detail">
                  <div class="img"><img src="../../assets/goods/1.jpg"></div>
                  <div class="info">
                      <p class="title">Nike air jordon 1 经典篮球鞋</p>
                      <p><small>2017-9-9 22:22:10</small></p>
                  </div>
              </div>
              <div class="ctrl">
                  <a class="btn">删除</a>
              </div>
          </div>
          <div class="item">
              <div class="detail">
                  <div class="img"><img src="../../assets/goods/1.jpg"></div>
                  <div class="info">
                      <p class="title">Nike air jordon 1 经典篮球鞋</p>
                      <p><small>2017-9-9 22:22:10</small></p>
                  </div>
              </div>
              <div class="ctrl">
                  <a class="btn">删除</a>
              </div>
          </div>
          <div class="item">
              <div class="detail">
                  <div class="img"><img src="../../assets/goods/1.jpg"></div>
                  <div class="info">
                      <p class="title">Nike air jordon 1 经典篮球鞋</p>
                      <p><small>2017-9-9 22:22:10</small></p>
                  </div>
              </div>
              <div class="ctrl">
                  <a class="btn">删除</a>
              </div>
          </div>
      </div>
  </div>
    </transition>
</template>

<script>
export default {
    name: 'favorite',
    data () {
        return {

        }
    },
    methods:{
		back:function ()
		{
			this.$router.back();
		}
    }

}
</script>

<style scoped>
    .list{
        margin-top: 60px;
    }
    .item{
        position: relative;
        border-bottom: 4px solid #f4f4f4;
    }
    .item .detail{
        position: relative;
        border-bottom: 1px dashed #eeee;
        height: 70px;
    }
    .item .info{
        padding: 10px;
        margin-left: 70px;
    }
    .item .img{
       position: absolute;
        width: 70px;
        height: 70px;
        padding: 10px;
    }
    .item .img img{
        height: 100%;
    }
    .item .ctrl{
        padding: 8px;
        overflow: hidden;
    }
    .item .ctrl label{
        display: block;
        float: left;
        padding-top: 5px;
    }
    .item .ctrl input{
        vertical-align: middle;
    }
    .item .btn{
        padding: 4px 12px;
        border:1px solid #ccc;
        text-align: center;
        border-radius: 2px;
        float: right;
        margin-right: 10px;
        font-size: 0.9rem;
    }
</style>
